package com.um.jdy.platform.station.controller;


import com.um.jdy.platform.station.entity.vo.StationOverviewVO;
import com.um.jdy.platform.station.manager.StationOverviewManager;
import com.um.springboot.starter.annotation.ApiPermission;
import com.um.springboot.starter.annotation.TokenRequired;
import com.um.springboot.starter.orm.controller.BaseController;
import com.um.springboot.starter.orm.entity.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * 管理类：站场
 *
 * @author cs
 * 日期 2023/5/24
 * 版权所有 广州优匠科技有限公司
 */
@Api(tags = "网点管理")
@Validated
@RestController
@RequestMapping("/api/v1/cms/station/overview")
@ApiPermission("station_overview")
@TokenRequired
public class StationOverviewController extends BaseController<StationOverviewManager> {

    @ApiPermission("data")
    @ApiOperation("网点概览")
    @GetMapping({"data"})
    public Response<StationOverviewVO> getOverviewData(){
        return manager.getOverviewData();
    }
}
